import java.util.Scanner;

public class Chapter08 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i =0;
        int b = 0;
        int c = 1;
        int a[]=new int[5];
        for (;i<5;i++){
            System.out.println("请输入第" + (i+1)+ "个数");
            int d = input.nextInt();
            b = b+a[i];
            c = c*a[i];
        }
        System.out.println("和为："+b+"乘积为："+c);
    }

}
